home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 February (DVD) / PCWorld_2008-02_DVD.iso / v cisle / PHP / PHP.exe / xampp-win32-1.6.5-installer.exe / phpMyAdmin / libraries / tbl_common.php < prev    next >
Encoding:
PHP Script  |  2007-12-20  |  1.0 KB  |  45 lines

  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4.  *
  5.  * @version $Id: tbl_common.php 10240 2007-04-01 11:02:46Z cybot_tm $
  6.  */
  7.  
  8. /**
  9.  * Gets some core libraries
  10.  */
  11. require_once './libraries/common.inc.php';
  12. require_once './libraries/bookmark.lib.php';
  13.  
  14. // Check parameters
  15. PMA_checkParameters(array('db', 'table'));
  16.  
  17. if (PMA_MYSQL_INT_VERSION >= 50002 && $db === 'information_schema') {
  18.     $db_is_information_schema = true;
  19. } else {
  20.     $db_is_information_schema = false;
  21. }
  22.  
  23. /**
  24.  * Set parameters for links
  25.  * @deprecated
  26.  */
  27. $url_query = PMA_generate_common_url($db, $table);
  28.  
  29. $url_params['db']    = $db;
  30. $url_params['table'] = $table;
  31.  
  32. /**
  33.  * Defines the urls to return to in case of error in a sql statement
  34.  */
  35. $err_url_0 = $cfg['DefaultTabDatabase'] . PMA_generate_common_url(array('db' => $db,));
  36. $err_url   = $cfg['DefaultTabTable'] . PMA_generate_common_url($url_params);
  37.  
  38.  
  39. /**
  40.  * Ensures the database and the table exist (else move to the "parent" script)
  41.  */
  42. require_once './libraries/db_table_exists.lib.php';
  43.  
  44. ?>
  45.